package top.system.dept.mapper;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import top.system.dept.pojo.Item;

import java.util.List;

/**
 * @ClassName: ItemMapper
 * @Author: Amosen
 * @Since: 2021/5/18
 */

@Repository
public interface ItemMapper {

    public List<Item> getItem(@Param("pageNum") Integer PageNum, @Param("pageSize") Integer pageSize);

    public Item getItemById(@Param("itemId") Integer itemId);

    public int updateItem(Item item);

    public int addItem(Item item);

    public int deleteItem(@Param("itemId") Integer itemId);

    public Integer countItem();

}
